package com.wwh.tx.homework.dao;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @author Albert
 * @date 2024/8/29-15:41
 * @describe
 */
@Repository
public class TaobaoDAO {
    @Resource
    private JdbcTemplate jdbcTemplate;

    public void updateMoney(double money){
        String sql = "UPDATE taobao SET money = money + ?";
        jdbcTemplate.update(sql, money);
    }
}
